08. Discrete Probability [Exercise] Solution
Here are code solutions to the previous exercises.
Exercise: Create a List
count_data = [54, 111, 163, 222, 277, 336, 276, 220, 171, 111, 59]
Exercise: Sum the Counts
total_count = sum(count_data)
Exercise: Calculate a Discrete Probability Distribution
for i in range(len(count_data)):
normalized_counts.append(count_data[i] / total_count)